#ifndef PAGEADMINUPDATEINFO_H
#define PAGEADMINUPDATEINFO_H

#include <QWidget>
#include "core/databasepool/databasepool.h"
#include "core/threadpool/threadpool.h"
#include "modules/user-management/usermanagement.h"
#include "LogManager.h"

namespace Ui {
class pageAdminUpdateInfo;
}

class pageAdminUpdateInfo : public QWidget
{
    Q_OBJECT

public:
    explicit pageAdminUpdateInfo(QWidget *parent = nullptr);
    ~pageAdminUpdateInfo();

public slots:
    void receiveUsername(const QString &username);
    void onSaveChanges();  // 保存修改

signals:
    void sendMessage(const QString &);
    int display(int);

private:
    Ui::pageAdminUpdateInfo *ui;
    QString currentUsername;
    // 创建用户管理对象，自动创建用户表
    UserManagement m_userMgr;
    QMap<QString, QVariant> userInfo;
    LogManager* m_logManager;
};

#endif // PAGEADMINUPDATEINFO_H
